package top.yangyitao.dao;

import java.util.List;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import top.yangyitao.entity.Organization;
import top.yangyitao.entity.OrganizationRole;

@Repository
public interface OrganizationRoleRepository extends JpaRepository<OrganizationRole, Long> {
	public OrganizationRole findByNameAndOrganization(String name,Organization organization);
	public List<OrganizationRole> findAll(Specification<OrganizationRole> spec,Sort sort);
}
